﻿//变量管理器
//本文件由：贺镇涛（2021300004071）负责
#pragma once
#include<string>
#include"SLLList.h"
class QuantityStoreHouse : public SLList//量类，提供常量和变量查找，添加
{
public:
	QuantityStoreHouse()
	{
		size = 0;
		head = tail = NULL;
		//导入系统常量
	}
	std::string get_value(const std::string& name);
	~QuantityStoreHouse();
};
inline std::string QuantityStoreHouse::get_value(const std::string& name)
{
	return *get_valuePTR(name);
}
QuantityStoreHouse::~QuantityStoreHouse()
{
	for (SLLNode* p; !isEmpty();)
	{
		p = head->next;
		delete head;                    //head变为野指针
		head = p;
	}
}
